package com.itheima.test03;


public class LambdaTest1 {
    public static void main(String[] args) {
        ShowHandler s1 = new ShowHandler() {
            @Override
            public void show() {
                System.out.println("匿名。。。");
            }
        };
        s1.show();
        ShowHandler s2 = () -> System.out.println("简化。。。");
        s2.show();
    }


}
interface ShowHandler {
    void show();
}
class showHandlerDemo{
    void useShowHandler(ShowHandler showHandler){
        showHandler.show();
    }
}

